﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Net.Mail;
using System.Configuration;
using System.Net;


namespace Orion.Models
{
	public class EmailService

	{
		public void SendMessage( EmailMessage message )
		{
			using ( MailMessage mail = new MailMessage( ) )
			{

				mail.To.Add( message.To );
				mail.Subject = message.Subject;
				mail.Body = message.Body;

				SmtpClient client = new SmtpClient( );
				client.EnableSsl = true;
				client.Send( mail );
			}
		}
	}
}